package com.dhcc.bpm.modules.safe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.safe.entity.OrgaControl;
import com.dhcc.bpm.modules.safe.vo.OrgaControlVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName OrgaControlMapper
 * @Description  API访问控制机构关联表 Mapper 接口
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface OrgaControlMapper extends BaseMapper<OrgaControl> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param orgaControl
	 * @return
	 */
	List<OrgaControlVO> selectOrgaControlPage(IPage page, OrgaControlVO orgaControl);

	/**
	 * 批量取消机构
	 * @param opcControlId
	 * @param toLongArray
	 * @return
	 */
    int deleteOrgas(Long opcControlId,@Param("ids") Long[] toLongArray);

}
